package com.eigland.eigaland_lib.network

import com.eigland.eigaland_lib.model.*
import kotlinx.coroutines.Deferred
import retrofit2.http.GET
import retrofit2.http.Query

interface MovieService {
    @GET("/api/v1/pos/movie/listShowing")
    fun movieShowingList(
        @retrofit2.http.Query("cinemaId") cinemaId: String
    ):Deferred<BaseResp<PageResponse<MovieResponse>>>

    @GET("/api/v1/pos/show/list")
    fun showListByCinemaAndMovie(
        @Query("cinemaId") cinemaId: String,
        @Query("movieId") movieId: String
    ): Deferred<BaseResp<PageResponse<ShowResponse>>>


    @GET("/api/v1/pos/show/findByCinemaMovieAndDate")
    fun showListByCinemaMovieDate(
        @Query("cinemaId") cinemaId: String,
        @Query("movieId") movieId: String,
        @Query("date") date: String
    ): Deferred<BaseResp<PageResponse<ShowResponse>>>


    @GET("/api/v1/pos/show/detail")
    fun seatPlanByShowId(@Query("showId") showId: String): Deferred<BaseResp<SeatPlanResponse>>

    @GET("/api/v1/pos/transaction/detailByOrderNo")
    fun takeTicketByNo(@Query("orderNo") orderNo: String):Deferred<BaseResp<TicketRecordItem>>


}

